#define  _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void mystrlen(char* p, int sz)
{
    int count = 0;
    while (*p != '\0' && count < sz)
    {
        p++, count++;
    }
    printf("%d", count);
}
int main()
{
    char arr[50] = { 0 };
    char* p = arr;
    gets(arr);
    int sz = sizeof(arr) / sizeof(arr[0]);
    mystrlen(p, sz);


}